import requests
url='http://www.baidu.com'
headers={
    'User-Agent':'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0'
}
response=requests.get(url=url,headers=headers)
print(response.text)